package com.woniuxy.staticproxy;

/**
 * @author: wgt
 * Date: 2021/11/15:15:18
 * Description:
 */
public class CocaColaProxy implements SubjectCocaCola {
    @Override
    public void cocaColaSBrand() {
        System.out.println("进货中……");
        //通过spring注入工厂，简单的 new Factory  反射
        CocaColaFactory cocaColaFactory = new CocaColaFactory();
        cocaColaFactory.cocaColaSBrand();
        //扩展的工厂的方法！
        System.out.println("零售价，3元。");
    }
}
